package com.yzr.common.result;

import java.util.Collection;

/**
 * @author      yzr
 * @date        2021/04/07 18:00
 * @description 分页响应参数
 **/
public class PageData<T> {


    private long total;

    private Collection<T> records;

    public PageData(Collection<T> records, long total) {
        this.records = records;
        this.total = total;
    }

    public PageData() {

    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public Collection<T> getRecords() {
        return records;
    }

    public void setRecords(Collection<T> records) {
        this.records = records;
    }
}
